cmake_minimum_required(VERSION 3.8)
project(imu_tool)

set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Release)

set(CXX_FLAGS "-Wall -g")
set(CMAKE_CXX_FLAGS "-std=c++14 -g")
#set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")


find_package(catkin REQUIRED COMPONENTS
        roscpp
        std_msgs
        sensor_msgs
        geometry_msgs
        nav_msgs
        tf)

# find dependencies
find_package(Eigen3 REQUIRED)
include_directories(
        ${catkin_INCLUDE_DIRS}
    include
    ${EIGEN3_INCLUDE_DIRS}
    )
catkin_package()

set(LIBS
        ${catkin_LIBRARIES})


add_executable(imu2odomtf src/imu2odomtf.cpp)
target_link_libraries(imu2odomtf ${LIBS})

add_executable(compute_gravity src/compute_gravity.cpp)
target_link_libraries(compute_gravity ${LIBS})


